import request from '../../router/axios'

export function addStatusGroup(params) { // 新增流程状态组
  return request({
    url: '/admin/wfStatus/group/info',
    method: 'post',
    params
  })
}

export function updateStatusGroup(params) { // 更新流程状态组
  return request({
    url: '/admin/wfStatus/group/info',
    method: 'put',
    params
  })
}

export function addStatus(params) { // 新增流程状态
  return request({
    url: '/admin/wfStatus/info',
    method: 'post',
    params
  })
}

export function updateStatus(data) { // 更新流程状态
  return request({
    url: '/admin/wfStatus/info',
    method: 'put',
    data
  })
}

export function getWfStatusGroupPage(params) { // 分页获取流程状态组
  return request({
    url: '/admin/wfStatus/group/page',
    method: 'get',
    params
  })
}


export function getWfStatusPage(params) { // 分页获取流程状态
  return request({
    url: '/admin/wfStatus/page',
    method: 'get',
    params
  })
}
